package com.paper_cutsgame;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class LevelSelect extends Activity implements OnClickListener{
	private Button simpleLevelBtn;
	private Button backBtn;
	
	private Intent intent = new Intent();
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.game_level_select);
        
        inti();
    }

    private void inti() {
		// TODO Auto-generated method stub
    	simpleLevelBtn = (Button) findViewById(R.id.gls_btn_level1);
    	backBtn = (Button) findViewById(R.id.gls_btn_back);
		
		simpleLevelBtn.setOnClickListener(this);
		backBtn.setOnClickListener(this);
	}

	@Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch(v.getId()) {
		case R.id.gls_btn_level1:
			intent.setClass(LevelSelect.this, GameActivity.class);
			startActivity(intent);
			break;
		case R.id.gls_btn_back:
			finish();
			break;
		}
	}

}
